﻿<%

@ Page Title="" Language="C#" MasterPageFile="~/Master Pages/Site.Master" AutoEventWireup="True"

CodeBehind="UserRegistration.aspx.cs" Inherits="parkour._Register" %>

<%

@ MasterType VirtualPath="~/Master Pages/Site.master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">



<h2>

Register

</h2>

<p>

Please fill out this form to register.

&nbsp;If you already have an account please

<asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false" NavigateUrl="~/Default.aspx">Log In</asp:HyperLink>.

</p>

<p>

<asp:Label ID="ErrorMessage" ForeColor="Red" runat="server" Visible="true" />

</p>

<p>

<asp:Label ID="UserIDLabel" runat="server" AssociatedControlID="UserID">ID Number:</asp:Label>

<asp:TextBox ID="UserID" runat="server" CssClass="textEntry"></asp:TextBox>

<asp:RequiredFieldValidator ID="UserIDRequired" runat="server" ControlToValidate="UserID"

ValidationGroup="RegisterUserValidationGroup">*ID number is required.</asp:RequiredFieldValidator>

</p>

<p>

<asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="FirstName">First Name:</asp:Label>

<asp:TextBox ID="FirstName" runat="server" CssClass="textEntry"></asp:TextBox>

<asp:RequiredFieldValidator ID="FirstNameRequired" runat="server" ControlToValidate="FirstName"

ValidationGroup="RegisterUserValidationGroup">*First name is required.</asp:RequiredFieldValidator>

</p>

<p>

<asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="LastName">Last Name:</asp:Label>

<asp:TextBox ID="LastName" runat="server" CssClass="textEntry"></asp:TextBox>

<asp:RequiredFieldValidator ID="LastNameRequired" runat="server" ControlToValidate="LastName"

ValidationGroup="RegisterUserValidationGroup">*Last name is required.</asp:RequiredFieldValidator>

</p>

<p>

<asp:Label ID="GenderLabel" runat="server" AssociatedControlID="Male">Gender:</asp:Label>

<asp:RadioButton ID="Male" Text="Male" Checked="true" GroupName="Gender" runat="server" />

<asp:RadioButton ID="Female" Text="Female" GroupName="Gender" runat="server" />

</p>

<p>

<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Email:</asp:Label>

<asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>

<asp:RequiredFieldValidator ID="RequiredEmailValidator" runat="server" ControlToValidate="Email"

ValidationGroup="RegisterUserValidationGroup">*Email is required.</asp:RequiredFieldValidator>

</p>

<p>

<asp:Label ID="BoxNumberLabel" runat="server" AssociatedControlID="BoxNumber">Box Number:</asp:Label>

<asp:TextBox ID="BoxNumber" runat="server" CssClass="textEntry"></asp:TextBox>

<asp:RequiredFieldValidator ID="RequiredBoxNumberValidator" runat="server" ControlToValidate="BoxNumber"

ValidationGroup="RegisterUserValidationGroup">*Box number is required.</asp:RequiredFieldValidator>

</p>

<asp:SqlDataSource ID="sqlResidency" runat="server" ConnectionString='<%$ connectionStrings:SEI_PKConnString %>'

SelectCommandType="StoredProcedure" SelectCommand="get_residency"></asp:SqlDataSource>

<p>

<asp:Label ID="ResidencyLabel" runat="server" AssociatedControlID="Residency">Residency:</asp:Label>

<asp:DropDownList ID="Residency" runat="server" DataSourceID="sqlResidency" DataTextField="r_name"

DataValueField="r_ID">

</asp:DropDownList>

</p>

<asp:SqlDataSource ID="sqlClassification" runat="server" ConnectionString='<%$ connectionStrings:SEI_PKConnString %>'

SelectCommandType="StoredProcedure" SelectCommand="get_classification"></asp:SqlDataSource>

<p>

<asp:Label ID="ClassificationLabel" runat="server" AssociatedControlID="Classification">Classification:</asp:Label>

<asp:DropDownList ID="Classification" runat="server" DataSourceID="sqlClassification"

DataTextField="c_name" DataValueField="c_ID">

</asp:DropDownList>

</p>

<p>

<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>

<asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>

<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"

ValidationGroup="RegisterUserValidationGroup">*Password is required.</asp:RequiredFieldValidator>

</p>

<p>

<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="Password">Confirm Password:</asp:Label>

<asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>

<asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"

ValidationGroup="RegisterUserValidationGroup">*Confirmation is required.</asp:RequiredFieldValidator>

<asp:CompareValidator ID="ConfirmPasswordValidator" runat="server" ControlToValidate="ConfirmPassword"

ControlToCompare="Password" ValidationGroup="RegisterUserValidationGroup">*Confirmation does not match password.</asp:CompareValidator>

</p>

<p class="submitButton">

<asp:Button ID="RegisterButton" runat="server" CommandName="Register" Text="Register"

ValidationGroup="RegisterUserValidationGroup" OnClick="RegisterButtonClick" />

</p>

</asp:Content>